package com.panda.entity.po;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (Video)表实体类
 *
 * @author makejava
 * @since 2022-05-13 15:07:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_video")
public class Video extends Model<Video> {

    @TableId
    private Long id;
    private String title;
    private String detail;

    //视频分类
    private Integer categoryId;
    private String categoryName;
    //访问量
    private Long views;
    //点赞数
    private Long likes;

    //视频链接
    private String videoUrl;
    //视频时长
    private Double duration;

    private String isAudit;

    //视频文件大小
    private Double videoSize;
    //封面
    private String cover;
    //是否原创
    private String copyright;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private String delFlag;

}

